<!-- 兄弟组件传参  借用父级 -->
<template>
    <div style="background-color: coral;">
        {{ flag }}
    </div>
</template>

<script setup lang='ts'>
// import { ref, reactive } from 'vue'
type Props = {
    flag: boolean
}
defineProps<Props>()
</script>

<style scoped lang="scss"></style>